import * as Api from '@/api/system/user-log'

const userLog = {
  state: {
  },
  mutations: {
  },
  actions: {
    GetLoginLogPage({ commit }, param) {
      return new Promise((resolve, reject) => {
        Api.getLoginLogPage(param)
          .then(res => {
            resolve(res.data)
          })
          .catch(err => {
            reject(err)
          })
      })
    },
    GetOperateLogPage({ commit }, param) {
      return new Promise((resolve, reject) => {
        Api.getOperateLogPage(param)
          .then(res => {
            resolve(res.data)
          })
          .catch(err => {
            reject(err)
          })
      })
    }
  }
}

export default userLog
